'''
Description: 
Author: zy
Date: 2021-06-02 18:33:20
LastEditors: zy
LastEditTime: 2021-06-02 18:37:10
'''
from flask import Flask
import models.getData as db
import models.sendData as data
import api.config as api
app = Flask(__name__)


@app.route(api.citys_indexs, methods=['GET', 'POST', 'PUT'])
def send_citys_indexs():
    return data.send_citys_indexs()

@app.route(api.main_index, methods=['GET', 'POST', 'PUT'])
def send_citys_mainIndex():
    return data.send_citys_mainIndex()

@app.route(api.cluster_main_index, methods=['GET', 'POST', 'PUT'])
def send_cluster_main_index():
    return data.send_cluster_main_index()

@app.route(api.cluster_main_main, methods=['GET', 'POST', 'PUT'])
def send_cluster_main_main():
    return data.send_cluster_main_main()

@app.route(api.iaqi, methods=['GET', 'POST', 'PUT'])
def send_iaqi():
    return data.send_iaqi()

@app.route(api.mapData, methods=['GET', 'POST', 'PUT'])
def send_map_data():
    return data.send_map_data()

if __name__ == '__main__':
    app.run()